﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/ViewMasterPage1.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<ComputerShopE3.Models.PT_THANH_TOAN>>" %>
<%@ Import Namespace="ComputerShopE3.Controllers" %> 

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
	<title>Phương thức thanh toán</title>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Thêm phương thức thanh toán</h2>

    <table>
        <tr>
             <% SiteRoles role = SpiderE3AuthorizeAttribute.GetCurrentRole(Context);
                 %>
            <th>
                Tên phương thức
            </th>
        </tr>

    <% foreach (var item in Model) { %>
    
        <tr>
            <td>
            <% if (role == SiteRoles.Admin || role == SiteRoles.Employee)
           { %>
            <%= Html.ActionLink("Chỉnh sửa", "Edit", new { id=item.id }) %> 
        <% } %>
                            
            <td>
                <%= Html.Encode(item.TenPhuongThuc) %>
            </td>
        </tr>
    
    <% } %>

    </table>

    <p>
        <%= Html.ActionLink("Tạo mới", "Create") %>
    </p>

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="PersonalMenu" runat="server">
</asp:Content>

